#include "os.h"

/* -------------------------- hash functions -------------------------------- */

/* Thomas Wang's 32 bit Mix Function */
unsigned int dictIntHashFunc(unsigned int key)
{
    key += ~(key << 15);
    key ^=  (key >> 10);
    key +=  (key << 3);
    key ^=  (key >> 6);
    key += ~(key << 11);
    key ^=  (key >> 16);
    return key;
}

dictType dictTypeNone = {
    dictIntHashFunc,   /* hash function */
    NULL,                   /* key dup */
    NULL,                   /* val dup */
    NULL,                   /* key compare */
    NULL,                   /* key destructor */
    NULL                    /* val destructor */
};

